//
//  LSZInformationTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/4/25.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZBInformationTableViewCell.h"

@implementation LSZBInformationTableViewCell

 -(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labelTitle = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, ScreenWidth-20, 20)];
        self.labelTitle.font =FONT_14;
        self.labelTitle.textColor = RGBColor(51, 51, 51);
        [self addSubview:self.labelTitle];

        self.labelAuthor = [[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(self.labelTitle.frame)+10, ScreenWidth-20,20)];
        self.labelAuthor.textColor = RGBColor(103,137,177);
        self.labelAuthor.font = FONT_13;
        self.labelAuthor.numberOfLines = 0;
        [self addSubview:self.labelAuthor];

        self.butZan = [[UIButton alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.labelAuthor.frame)+13, ScreenWidth/3, 60)];
        [self addSubview:self.butZan];

        self.imageViewShou = [[UIImageView alloc]initWithFrame:CGRectMake((self.butZan.frame.size.width-30)/2, 0,30, 30)];
        self.imageViewShou.userInteractionEnabled = YES;
        [self.butZan addSubview:self.imageViewShou];

        self.labelShou = [[UILabel alloc]initWithFrame:CGRectMake(0,CGRectGetMaxY(self.imageViewShou.frame)+5,self.butZan.frame.size.width, 22)];
        self.labelShou.font = FONT_12;
        self.labelShou.textColor = RGBColor(51, 51, 51);
        self.labelShou.textAlignment = NSTextAlignmentCenter;
        self.labelShou.userInteractionEnabled = YES;
        [self.butZan addSubview:self.labelShou];


        UIButton *butClick = [[UIButton alloc]initWithFrame:CGRectMake(ScreenWidth/3, CGRectGetMaxY(self.labelAuthor.frame)+13, ScreenWidth/3, 60)];
        [self addSubview:butClick];

        self.imageViewClick = [[UIImageView alloc]initWithFrame:CGRectMake((butClick.frame.size.width-33-5)/2, 0,30,30)];
        self.imageViewClick.image = [UIImage imageNamed:@"浏览次数"];
        self.imageViewClick.userInteractionEnabled = YES;
        [butClick addSubview:self.imageViewClick];

        self.labelClick = [[UILabel alloc]initWithFrame:CGRectMake(0,CGRectGetMaxY(self.imageViewClick.frame)+5,self.butZan.frame.size.width, 22)];
        self.labelClick.font = FONT_12;
        self.labelClick.textColor = RGBColor(51, 51, 51);
        self.labelClick.textAlignment = NSTextAlignmentCenter;
        self.labelClick.userInteractionEnabled = YES;
        [butClick addSubview:self.labelClick];

        self.butShare= [[UIButton alloc]initWithFrame:CGRectMake(ScreenWidth/3*2, CGRectGetMaxY(self.labelAuthor.frame)+13, ScreenWidth/3, 60)];
        [self addSubview:self.butShare];

        self.imageViewShare = [[UIImageView alloc]initWithFrame:CGRectMake((self.butShare.frame.size.width-30)/2, 0,30, 30)];
        self.imageViewShare.image = [UIImage imageNamed:@"视频_分享"];
        self.imageViewShare.userInteractionEnabled = YES;
        [self.butShare addSubview:self.imageViewShare];

        self.labelShare = [[UILabel alloc]initWithFrame:CGRectMake(0,CGRectGetMaxY(self.imageViewShou.frame)+5,self.butShare.frame.size.width, 22)];
        self.labelShare.font = FONT_12;
        self.labelShare.textColor = RGBColor(51, 51, 51);
        self.labelShare.textAlignment = NSTextAlignmentCenter;
        self.labelShare.userInteractionEnabled = YES;
        self.labelShare.text = @"分享";
        [self.butShare addSubview:self.labelShare];
    }
    return self;
}

@end
